﻿
@using S4Store.Models
@model LX.Core.Query.PagedList<S4Store.Domain.CarModel>
@{
    ViewBag.Title = "Query";
    Layout = null;
}
<div class="pageContent" ratio="*">
<div class="grid">
		<table class="table" width="1000" layoutH="138" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="150">车型</th>
				<th width="150">车款名称</th>
				<th width="50">状态</th>
			</tr>
		</thead>
		<tbody>
            @foreach(var m in this.Model.Data){
                <tr>
                    <td style=" text-align:center"><input name="ids" value="@m.Id" type="checkbox"></td>
                    <td>@m.Brand.Name</td>
				    <td>@m.Name</td>
				    <td>@if(m.IsClose){
                            <text><span style='color:red'>已下线</span></text>
                        }else{
                            <text>正常</text>
                        }
                    </td>		
			    </tr>	
            }					
		</tbody>
	</table>
</div>
</div>
@Html.Partial("Pager",new PagerModel{ Page=Model.Page, Total=Model.Total, PageSize= Model.PageSize})	